package c.j.a.d.b.j;

/* compiled from: RetryScheduler */
public class y implements Runnable {
    public final /* synthetic */ int a;
    public final /* synthetic */ boolean b;
    public final /* synthetic */ a0 c;

    public y(a0 a0Var, int i, boolean z) {
        this.c = a0Var;
        this.a = i;
        this.b = z;
    }

    /* JADX WARNING: Removed duplicated region for block: B:59:0x008f A:{SYNTHETIC} */
    /* JADX WARNING: Removed duplicated region for block: B:35:0x0084 A:{Catch:{ Exception -> 0x00b4 }} */
    public void run() {
        /*
        r13 = this;
        r0 = r13.c;	 Catch:{ Exception -> 0x00b4 }
        r1 = r0.f;	 Catch:{ Exception -> 0x00b4 }
        if (r1 > 0) goto L_0x0007;
    L_0x0006:
        return;
    L_0x0007:
        r0 = r0.h();	 Catch:{ Exception -> 0x00b4 }
        if (r0 != 0) goto L_0x000e;
    L_0x000d:
        return;
    L_0x000e:
        r1 = "RetryScheduler";
        r2 = new java.lang.StringBuilder;	 Catch:{ Exception -> 0x00b4 }
        r2.<init>();	 Catch:{ Exception -> 0x00b4 }
        r3 = "doScheduleAllTaskRetry: mWaitingRetryTasksCount = ";
        r2.append(r3);	 Catch:{ Exception -> 0x00b4 }
        r3 = r13.c;	 Catch:{ Exception -> 0x00b4 }
        r3 = r3.f;	 Catch:{ Exception -> 0x00b4 }
        r2.append(r3);	 Catch:{ Exception -> 0x00b4 }
        r2 = r2.toString();	 Catch:{ Exception -> 0x00b4 }
        c.j.a.d.b.g.a.e(r1, r2);	 Catch:{ Exception -> 0x00b4 }
        r1 = java.lang.System.currentTimeMillis();	 Catch:{ Exception -> 0x00b4 }
        r3 = new java.util.ArrayList;	 Catch:{ Exception -> 0x00b4 }
        r3.<init>();	 Catch:{ Exception -> 0x00b4 }
        r4 = r13.c;	 Catch:{ Exception -> 0x00b4 }
        r4 = r4.c;	 Catch:{ Exception -> 0x00b4 }
        monitor-enter(r4);	 Catch:{ Exception -> 0x00b4 }
        r5 = 0;
        r6 = 0;
    L_0x0038:
        r7 = r13.c;	 Catch:{ all -> 0x00b1 }
        r7 = r7.c;	 Catch:{ all -> 0x00b1 }
        r7 = r7.size();	 Catch:{ all -> 0x00b1 }
        if (r6 >= r7) goto L_0x0092;
    L_0x0042:
        r7 = r13.c;	 Catch:{ all -> 0x00b1 }
        r7 = r7.c;	 Catch:{ all -> 0x00b1 }
        r7 = r7.valueAt(r6);	 Catch:{ all -> 0x00b1 }
        r7 = (c.j.a.d.b.j.a0.a) r7;	 Catch:{ all -> 0x00b1 }
        if (r7 == 0) goto L_0x008f;
    L_0x004e:
        r8 = r13.a;	 Catch:{ all -> 0x00b1 }
        r9 = r13.b;	 Catch:{ all -> 0x00b1 }
        r10 = r7.l;	 Catch:{ all -> 0x00b1 }
        if (r10 != 0) goto L_0x005e;
    L_0x0056:
        r8 = "RetryScheduler";
        r9 = "canRetry: mIsWaitingRetry is false, return false!!!";
        c.j.a.d.b.g.a.e(r8, r9);	 Catch:{ all -> 0x00b1 }
        goto L_0x007f;
    L_0x005e:
        r10 = r7.b;	 Catch:{ all -> 0x00b1 }
        if (r10 >= r8) goto L_0x0063;
    L_0x0062:
        goto L_0x007f;
    L_0x0063:
        r8 = r7.i;	 Catch:{ all -> 0x00b1 }
        r10 = r7.c;	 Catch:{ all -> 0x00b1 }
        if (r8 < r10) goto L_0x006a;
    L_0x0069:
        goto L_0x007f;
    L_0x006a:
        r8 = r7.j;	 Catch:{ all -> 0x00b1 }
        if (r8 == 0) goto L_0x0072;
    L_0x006e:
        r8 = 2;
        if (r0 == r8) goto L_0x0072;
    L_0x0071:
        goto L_0x007f;
    L_0x0072:
        if (r9 != 0) goto L_0x0081;
    L_0x0074:
        r8 = r7.k;	 Catch:{ all -> 0x00b1 }
        r8 = r1 - r8;
        r10 = r7.d;	 Catch:{ all -> 0x00b1 }
        r10 = (long) r10;	 Catch:{ all -> 0x00b1 }
        r12 = (r8 > r10 ? 1 : (r8 == r10 ? 0 : -1));
        if (r12 >= 0) goto L_0x0081;
    L_0x007f:
        r8 = 0;
        goto L_0x0082;
    L_0x0081:
        r8 = 1;
    L_0x0082:
        if (r8 == 0) goto L_0x008f;
    L_0x0084:
        r8 = r13.b;	 Catch:{ all -> 0x00b1 }
        if (r8 == 0) goto L_0x008c;
    L_0x0088:
        r8 = r7.d;	 Catch:{ all -> 0x00b1 }
        r7.h = r8;	 Catch:{ all -> 0x00b1 }
    L_0x008c:
        r3.add(r7);	 Catch:{ all -> 0x00b1 }
    L_0x008f:
        r6 = r6 + 1;
        goto L_0x0038;
    L_0x0092:
        monitor-exit(r4);	 Catch:{ all -> 0x00b1 }
        r1 = r3.size();	 Catch:{ Exception -> 0x00b4 }
        if (r1 <= 0) goto L_0x00b4;
    L_0x0099:
        r1 = r3.iterator();	 Catch:{ Exception -> 0x00b4 }
    L_0x009d:
        r2 = r1.hasNext();	 Catch:{ Exception -> 0x00b4 }
        if (r2 == 0) goto L_0x00b4;
    L_0x00a3:
        r2 = r1.next();	 Catch:{ Exception -> 0x00b4 }
        r2 = (c.j.a.d.b.j.a0.a) r2;	 Catch:{ Exception -> 0x00b4 }
        r3 = r13.c;	 Catch:{ Exception -> 0x00b4 }
        r2 = r2.a;	 Catch:{ Exception -> 0x00b4 }
        c.j.a.d.b.j.a0.e(r3, r2, r0, r5);	 Catch:{ Exception -> 0x00b4 }
        goto L_0x009d;
    L_0x00b1:
        r0 = move-exception;
        monitor-exit(r4);	 Catch:{ all -> 0x00b1 }
        throw r0;	 Catch:{ Exception -> 0x00b4 }
    L_0x00b4:
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.j.a.d.b.j.y.run():void");
    }
}
